package com.xcdh.trading.controller;

import com.xcdh.commons.controller.BaseController;
import com.xcdh.domain.vo.R;
import com.xcdh.trading.entity.IndustryCapitalFlow;
import com.xcdh.trading.service.IndustryCapitalFlowService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/industryCapitalFlow")
public class IndustryCapitalFlowController extends BaseController<IndustryCapitalFlow, IndustryCapitalFlowService> {
    @Autowired
    private IndustryCapitalFlowService industryCapitalFlowService ;

    @PostMapping("/syncIndustryCapitalFlow/{tradeDate}")
    public R syncIndustryCapitalFlow(@PathVariable String tradeDate){
        industryCapitalFlowService.syncIndustryCapitalFlow(tradeDate);
        return R.ok() ;
    }
}
